package org.homework;

import java.util.ArrayList;
import java.util.List;

/**
 * 超市类
 */
public class Supermarket {
    /**
     * 商品列表
     */
    List<Product> inventory;

    public Supermarket() {
        this.inventory = new ArrayList<>();
    }

    public Supermarket(List<Product> products) {
        this.inventory = products;
    }

    public List<Product> getProducts() {
        return inventory;
    }

    public void setProducts(List<Product> products) {
        this.inventory = products;
    }
}
